.index-container {
  padding-bottom: calc(50rpx + env(safe-area-inset-bottom));
  color: #000;
  background-color: #fff;

  .search-con {
    padding: 10rpx 20rpx 10rpx;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90rpx;
    box-sizing: border-box;
    background-color: #fff;
    z-index: 9;

    .search {
      padding: 0 10rpx;
      display: flex;
      align-items: center;
      height: 70rpx;
      background-color: #f6f7f9;
      border-radius: 70rpx;

      .search-img {
        margin-right: 20rpx;
        width: 50rpx;
        height: 50rpx;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .search-text {
        flex: 1;
        font-size: 26rpx;
        color: #818894;
      }
    }
  }

  .top-tabbar {
    position: fixed;
    top: 90rpx;
    left: 0;
    display: flex;
    padding: 20rpx;
    width: 100%;
    background-color: #fff;
    z-index: 9;

    .tabbar-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 34rpx;
      margin-right: 30rpx;
      color: #818894;
    }

    .tabbar-item.active {
      font-size: 36rpx;
      font-weight: 600;
      color: #000;

      &::after {
        display: inline-block;
        content: '';
        width: 10rpx;
        height: 10rpx;
        border-radius: 50%;
        // background-color: #00BAFF;
        background-color: #f36838;
      }
    }
  }

  .main {
    padding: 200rpx 0 calc(env(safe-area-inset-bottom));

    .section {

      .banner {
        padding: 0 20rpx 30rpx;

        .swiper {
          height: 276rpx;
          // border-radius: 20rpx;
          // overflow: hidden;

          .swiper-item {
            background-color: #818894;
            border-radius: 20rpx;
            overflow: hidden;

            image {
              width: 100%;
              height: 100%;
            }
          }
        }
      }

      .section-group {

        .group-title {
          padding: 0 30rpx;
          display: flex;
          // align-items: flex-end;
          align-items: center;
          justify-content: space-between;

          .left {
            font-size: 34rpx;
            font-weight: 500;
          }

          .right {
            font-size: 24rpx;
            color: #999;
          }
        }

        .new-music-list {
          padding: 10rpx;
          display: grid;
          grid-template-columns: 1fr 1fr 1fr;

          .new-music-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 30rpx;

            .img-con {
              position: relative;
              margin-bottom: 15rpx;

              .image {
                width: 210rpx;
                height: 210rpx;
                border-radius: 20rpx;
                vertical-align: middle;
                background-color: #f1f1f1;
              }

              .play {
                padding: 8rpx;
                position: absolute;
                right: 10rpx;
                bottom: 10rpx;
                width: 50rpx;
                height: 50rpx;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                overflow: hidden;
                background-color: rgba(0, 0, 0, .5);
                box-sizing: border-box;

                image {
                  width: 100%;
                  height: 100%;
                }
              }
            }

            .songname {
              font-size: 26rpx;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              width: 200rpx;
              // text-align: center;
            }

            .singername {
              width: 200rpx;
              color: #818894;
              font-size: 24rpx;
            }
          }
        }

        .rank-music-list {
          padding: 20rpx;

          .rank-music-item {
            display: flex;
            // align-items: center;
            margin-bottom: 30rpx;
            background: rgb(98 119 192 / 4%);
            border-radius: 20rpx;

            .img-con {
              margin-right: 20rpx;
              position: relative;
              background-color: #999;
              border-radius: 20rpx;
              overflow: hidden;

              image {
                width: 210rpx;
                height: 210rpx;
                vertical-align: middle;
              }

              .songname {
                position: absolute;
                top: 0;
                left: 0;
                font-size: 26rpx;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 200rpx;
                text-align: center;
              }
            }

            .songinfo {
              flex: 1;
              display: flex;
              flex-direction: column;
              justify-content: space-around;
              padding: 30rpx 0;

              .item {
                display: flex;
                align-items: center;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 460rpx;
                font-size: 26rpx;

                .idx {
                  margin-right: 10rpx;
                  color: #818894;
                }

                .name {
                  margin-right: 10rpx;
                }

                .author {
                  color: #818894;
                }
              }
            }
          }
        }

        .plist-music-list {
          padding: 10rpx;
          display: grid;
          grid-template-columns: 1fr 1fr 1fr;

          .plist-music-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 30rpx;

            .img-con {
              position: relative;
              margin-bottom: 15rpx;
              background-color: #818894;
              border-radius: 20rpx;
              overflow: hidden;

              image {
                width: 210rpx;
                height: 210rpx;
                border-radius: 20rpx;
                vertical-align: middle;
              }

              .play-num {
                padding: 5rpx 10rpx;
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                text-align: right;
                font-size: 22rpx;
                color: #fff;
                background-color: rgba(0, 0, 0, .5);
                box-sizing: border-box;
              }
            }

            .songname {
              font-size: 26rpx;
              display: -webkit-box;
              overflow: hidden;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              width: 200rpx;
            }
          }
        }

        .singer-music-list {
          padding: 10rpx;
          display: grid;
          grid-template-columns: 1fr 1fr 1fr;

          .singer-music-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 30rpx;

            image {
              margin-bottom: 15rpx;
              width: 210rpx;
              height: 210rpx;
              border-radius: 20rpx;
            }

            .songname {
              font-size: 26rpx;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              width: 200rpx;
              text-align: center;
            }
          }
        }
      }
    }
  }

  .music-handle-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    // height: calc(100rpx + env(safe-area-inset-bottom));

    .handle-bar {
      position: relative;
      margin: 0 20rpx 20rpx;
      display: flex;
      height: 66rpx;
      background-color: rgba(243, 104, 56, .8);
      border-radius: 66rpx;

      .img-con {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100rpx;
        height: 100rpx;
        border-radius: 10rpx;
        overflow: hidden;

        image {
          width: 100%;
          height: 100%;
        }
      }

      .current-music {
        padding: 0 150rpx 0 120rpx;
        line-height: 66rpx;
        color: #000;
        font-size: 26rpx;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .handle-btn {
        display: flex;
        align-items: center;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        // width: 200rpx;
        height: 66rpx;

        .img {
          padding: 8rpx;
          margin-right: 20rpx;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 50rpx;
          height: 50rpx;
          background-color: #fff;
          border-radius: 50rpx;
          box-sizing: border-box;

          image {
            width: 50rpx;
            height: 50rpx;
            // vertical-align: middle;
          }
        }


      }
    }

    .safe-area {
      width: 100vw;
      height: env(safe-area-inset-bottom);
    }
  }
}